<!-- 重置密码 -->
<template>
  <el-tooltip class="item" effect="dark" content="重置密码" placement="top">
    <el-button icon="el-icon-refresh" type="primary" size="small" @click="resetPw"></el-button>
  </el-tooltip>
</template>

<script>
  export default {
    name: 'ResetUserPassword',
    methods: {
      // 重置密码
      resetPw() {
        this.$confirm('是否重置该账户的密码？', '提示', {
          confirmButtonText: '确定',
          cancelButtonText: '取消',
          type: 'warning'
        }).then(() => {
          this.$message({
            type: 'success',
            message: '重置成功!'
          });
        });
      }
    }
  }

</script>
